<template>
  <div class="card-common-inner public-line-over-view">
    <div class="over-view-total">
      <!-- <div class="total-item">
        <img src="~@/assets/imgs/publicline/index/icon_jfxc.png" />
        <div class="total-title">积分薪酬</div>
      </div> -->
      <div class="total-item" @click="gotoPage('/publicline/board/morning')">
        <img src="~@/assets/imgs/publicline/index/icon_zzbd.png" />
        <div class="total-title">晨会</div>
      </div>
      <div class="total-item" @click="gotoPage('/publicline/board/evening')">
        <img src="~@/assets/imgs/publicline/index/icon_zzjh.png" />
        <div class="total-title">夕会</div>
      </div>
      <div class="total-item" @click="gotoPage('/publicline/town-info')">
        <img src="~@/assets/imgs/publicline/index/icon_zzqb.png" />
        <div class="total-title">作战情报</div>
      </div>
    </div>
    <van-swipe class="staff-swipe" >
      <van-swipe-item class="over-view-more">
        <div class="more-item" @click="gotoPage('/publicline/wise/integralTotal')">
          <img src="~@/assets/imgs/publicline/index/icon_jf.png" />
          <div class="total-title">积分</div>
        </div>
        <div class="more-item">
          <img src="~@/assets/imgs/publicline/index/icon_xc.png" />
          <div class="total-title">薪酬</div>
        </div>
        <!-- <div class="more-item" @click="gotoPage('/publicline/payroll')"> -->
        <!-- <div class="more-item">
          <img src="~@/assets/imgs/publicline/index/icon_gzd.png" />
          <div class="total-title">我的工资单</div>
        </div> -->
        <div class="more-item">
          <img src="~@/assets/imgs/publicline/index/icon_rank.png" />
          <div class="total-title">积分评价</div>
        </div>
        <!-- <div class="more-item">
          <img src="~@/assets/imgs/publicline/index/icon_team.png" />
          <div class="total-title">团队建设</div>
        </div> -->
        <div class="more-item">
          <img src="~@/assets/imgs/publicline/index/icon_yhst.png" />
          <div class="total-title">用户视图</div>
        </div>
        <div class="more-item">
          <img src="~@/assets/imgs/publicline/index/icon_xqst.png" />
          <div class="total-title">小区视图</div>
        </div>
      </van-swipe-item>
    </van-swipe>
    <!-- </div> -->
  </div>
</template>

<script>
import { Toast } from 'vant'

export default {
  components: {  },
  data() {
    return {
      // 只有小CEO可看收入预测菜单
      isShowReven: this.$isCeo,
      isShowForecase:this.$marketType=='02'
    };
  },
  methods: {
    gotoPage( path ) {
      this.$open.call(this, path);
    },
    openNewWindow( type ) {
      qm.auth.getAccessToken({
        onSuccess:function(res){
          let url = "";
          qm.jump.openNewBrowser({
            url: url + res.accessToken
          } );
        },
        onError:function(res){
          Toast.fail({
            message: "获取用户token失败！"
          })
        }
      });
    }
  }
}
</script>
<style lang="less" scoped>
@import '~@/assets/less/card.less';
.public-line-over-view {
  .over-view-total .total-item,
  .over-view-more .more-item {
    text-align: center;
    .total-title {
      font-size: 10px;
      color: #666;
      margin-top: 2px;
      white-space: nowrap;
    }
  }
  .over-view-total {
    padding: 0 10px;
    display: flex;
    align-items: center;
    // justify-content: space-between;
    justify-content: space-around;
    .total-item {
      img {
        // width: 54px;
        width: 44px;
      }
    }
  }
  .over-view-more {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 12px;
    .more-item {
      width: 20%;
      height: 69px;
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: center;
      img {
        width: 28px;
      }
      .other-img {
        width: 24px;
        padding: 2px 0;
      }
    }
  }
}
/deep/ .staff-swipe {
  .van-swipe__indicators {
    bottom: 0;
  }
  .van-swipe__indicator {
    width: 4px;
    height: 4px;
    background-color: #999;
    opacity: .9;
    &:not(:last-child) {
      margin-right: 4px;
    }
  }
  .van-swipe__indicator--active {
    background-color: #3e83fd;
    opacity: 1;
    width: 10px;
    border-radius: 4px;
  }
}
</style>
